package com.ay.wiki_plt.domain.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/*分页请求参数*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageRequestDTO {
    @NotNull(message = "【页码】不能为空")
    private Integer page;//当前页码
    @NotNull(message = "【每页条数】不能为空")
    @Max(value = 1000, message = "【每页条数】不能超过1000")
    private Integer pageSize;//每页显示的条目数量
}
